import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 DeviceLockNetwork 分页列表
 */
export function getDeviceLockNetworkPagination(data: any) {
  return axios.get(`${context}/deviceLockNetwork/pagination`, { params: data })
}

/**
 * 获取 DeviceLockNetwork 所有数据
 */
export function getDeviceLockNetworkAllList(data: any) {
  return axios.get(`${context}/deviceLockNetwork/allList`, { params: data })
}

/**
 * 获取 DeviceLockNetwork 详情
 */
export function getDeviceLockNetworkDetailById(id: any) {
  return axios.get(`${context}/deviceLockNetwork/${id}`, { params: { id } })
}

/**
 * 新增 DeviceLockNetwork
 */
export function addDeviceLockNetwork(data: any) {
  return axios.post(`${context}/deviceLockNetwork`, data)
}

/**
 * 修改 DeviceLockNetwork
 */
export function updateDeviceLockNetwork(data: any) {
  return axios.put(`${context}/deviceLockNetwork`, data)
}

/**
 * 删除 DeviceLockNetwork
 */
export function batchRemoveDeviceLockNetwork(data: any) {
  return axios.post(`${context}/deviceLockNetwork/batchRemove`, data)
}
